package main.hooks;

import java.awt.Point;

import main.EntityDef;
import main.objects.Object4;
import main.objects.ObjectDef;

public class RSObject {
int x;
int y;
int id;
String name;
public RSObject(int id) {
	this.id = id;
}
public RSObject(int x, int y, int id) {
	this.x = x;
	this.y = y;
	this.id = id;
}
public RSTile getLocation() {
	return new RSTile(getX(), getY());
}

public int getX() {
	return x;
}
public int getY() {
	return y;
}
public int getId() {
	return id;
}
public String[] getOptions() {
	return ObjectDef.forID(id).actions;
}
public String getName() {
	return ObjectDef.forID(id).name;
}
public String toString() {
	return ObjectDef.forID(id).toString();
}
public ObjectDef getObjectDef() {
	return ObjectDef.forID(getId());
}

}
